<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/loginredirect.jsp"%>
<head>
    <title><fmt:message key="menu.js2"/></title>
    <meta name="heading" content="<fmt:message key='menu.odjava'/>"/>
    <meta name="menu" content="FormsMenu"/>
</head>

<div class="jquery_tab_container">
    <span class="heading_tab advanced_link active tab1"><fmt:message key="menu.odjava"/></span>
</div>

<div class="jquery_tab">
    <div class="content_block"></div>
<form:form commandName="workPosition" method="post" action="workpositionsearchformodjava" id="workPosition" onsubmit="return validateWorkPositionForm(this)">
<form:errors path="*" cssClass="error" element="div"/>
<form:hidden path="id"/>

    <p>
        <appfuse:label styleClass="desc" key="searchPerson.firstName"/>
        <form:errors path="employment.firstName" cssClass="fieldError"/>
        <form:input path="employment.firstName" id="employment.firstName" cssClass="input-medium toCyr" cssErrorClass="text medium error" maxlength="50"/>
    </p>
    <p>
        <appfuse:label styleClass="desc" key="searchPerson.lastName"/>
        <form:errors path="employment.lastName" cssClass="fieldError"/>
        <form:input path="employment.lastName" id="employment.lastName" cssClass="input-medium toCyr" cssErrorClass="text medium error" maxlength="50"/>
    </p>
    <p>
        <appfuse:label styleClass="desc" key="searchPerson.socScrNo"/>
        <form:errors path="employment.socScrNo" cssClass="fieldError"/>
        <form:input path="employment.socScrNo" id="employment.socScrNo" cssClass="input-medium toCyr" cssErrorClass="text medium error" maxlength="50"/>
    </p>

    <p class="buttonBar bottom">
        <input type="submit" class="button" name="search" value="<fmt:message key="button.search"/>"/>
        <input type="button" class="button" name="cancel" value="<fmt:message key="button.cancel"/>" onclick="location.href='<c:url value="/workpositionsearch"/>'" />
    </p>
</form:form>

<display:table name="workpositionsearchformList" class="table" requestURI="" id="workpositionsearchformList" export="false" pagesize="25">
    <display:column property="employment.firstName" titleKey="employment.firstName" sortable="true" href="workpositionformodjava?" media="html"
        paramId="bi" paramProperty="employment.id" />
    <display:column property="employment.lastName" sortable="true" titleKey="basicInfo.lastName"/>
    <display:column property="employment.socScrNo" sortable="true" titleKey="basicInfo.socScrNo"/>
    </display:table>
</div>
<v:javascript formName="searchWorkPositionForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<c:url value='/scripts/validator.jsp'/>"></script>

<script type="text/javascript">
    Form.focusFirstElement($('searchWorkPositionForm'));
</script>

<script type="text/javascript">
    highlightTableRows("workpositionsearchformList");
</script> 